package com.ncloud.aaaa.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.alibaba.fastjson.annotation.JSONField;

@SuppressWarnings("serial")
@Entity
@Table(name="sys_user",uniqueConstraints={@UniqueConstraint(columnNames={"account"})})
public class User implements Serializable{

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	
	private String account;
	private String pwd;
	private String userType;
	private String name;
	private String email;
	private String mobile;
	private String telephone;
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	private Date firstLoginTime;
	private String firstLoginIp;
	private Date loginTime;
	private String loginIp;
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	private Integer errTimes;
	private String state;
	private String remark;
	
	public String getAccount() {
		return account;
	}
	
	public void setAccount(String account) {
		this.account = account;
	}
	
	public String getPwd() {
		return pwd;
	}
	
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public Date getCreateTime() {
		return createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Date getFirstLoginTime() {
		return firstLoginTime;
	}
	
	public void setFirstLoginTime(Date firstLoginTime) {
		this.firstLoginTime = firstLoginTime;
	}
	
	public String getFirstLoginIp() {
		return firstLoginIp;
	}
	
	public void setFirstLoginIp(String firstLoginIp) {
		this.firstLoginIp = firstLoginIp;
	}
	
	public Date getLoginTime() {
		return loginTime;
	}
	
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	
	public String getLoginIp() {
		return loginIp;
	}
	
	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}
	
	public Date getUpdateTime() {
		return updateTime;
	}
	
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public String getState() {
		return state;
	}
	
	public void setState(String state) {
		this.state = state;
	}
	
	public String getRemark() {
		return remark;
	}
	
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getErrTimes() {
		return errTimes;
	}

	public void setErrTimes(Integer errTimes) {
		this.errTimes = errTimes;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

}
